Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

GH-496 GW target own cluster #638

Merged
merged 4 commits into from
Nov 17, 2023
Merged

Conversation

maksymvavilov
Copy link
Contributor

@maksymvavilov maksymvavilov commented Oct 25, 2023

From the original only 1 task is left that are covered here: validate Gateway CR when it arrives for the reconciliation loop and add a test for an invalid Gateway.

In this context invalid == has a mixture single- and multicluster addresses. We expect only one type of addresses to be present at the Gateway CR.

I'm also giving a second life to the traffic.Gateway transforming it into the utils.GatewayWrapper to preform the mentioned check. Keeping it separate from main packages for

  • Simplicity of policy controllers departure
  • Possibilities to use the wrapper in other packages without the fear of import cycles

closes #496

pkg/traffic/gateway.go Outdated Show resolved Hide resolved
pkg/traffic/gateway.go Outdated Show resolved Hide resolved
pkg/traffic/gateway.go Outdated Show resolved Hide resolved
pkg/traffic/gateway.go Outdated Show resolved Hide resolved
@mikenairn
Copy link
Member

Few small comments/suggestions, but i think this is looking good. I'm not sure if utils will be the eventual home of the gateway wrapper but its fine for now, we can decide where it should live as it evolves (Closer alignment/merge with MultiClusterGatewayTarget).

@maksymvavilov
Copy link
Contributor Author

Few small comments/suggestions, but i think this is looking good. I'm not sure if utils will be the eventual home of the gateway wrapper but its fine for now, we can decide where it should live as it evolves (Closer alignment/merge with MultiClusterGatewayTarget).

Would you have a better place/name in mind for the GatewayWrapper package? 🤔 don't like either of those but couldn't come up with a better place and name

@mikenairn
Copy link
Member

/lgtm
/approve

Copy link
Contributor

openshift-ci bot commented Nov 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: makslion, mikenairn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 61b38f6 into Kuadrant:main Nov 17, 2023
9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved lgtm tide/merge-method-squash Instructing Openshift CI bot to squash commits on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update DNSPolicy reconciler to function with non mgc gateways (e.g. istio)
4 participants